#include "biaomainwindow.h"
#include "ui_biaomainwindow.h"
#include <QPixmap>
#include <QDebug>

biaoMainWindow::biaoMainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::biaoMainWindow)
{
    ui->setupUi(this);
    setWindowFlags(Qt::FramelessWindowHint);
    setAttribute(Qt::WA_TranslucentBackground);
}

void biaoMainWindow::LI()
{
    QPixmap map1("e://baiduyundownload//pp(new)//bishi2.png"),
            map2("e://baiduyundownload//pp(new)//buxie.png"),
            map3("e://baiduyundownload//pp(new)//daxiao.png"),
            map4("e://baiduyundownload//pp(new)//guzhang.png"),
            map5("e://baiduyundownload//pp(new)//han.png"),
            map6("e://baiduyundownload//pp(new)//koubi.png"),
            map7("e://baiduyundownload//pp(new)//liulei.png"),
            map8("e://baiduyundownload//pp(new)//tiaopi.png");

    switch (XIN)
    {
    case 1: ui->label->setPixmap(map2); break;
    case 2: ui->label->setPixmap(map1); break;
    case 3: ui->label->setPixmap(map3); break;
    case 4: ui->label->setPixmap(map4); break;
    case 5: ui->label->setPixmap(map5); break;
    case 6: ui->label->setPixmap(map6); break;
    case 7: ui->label->setPixmap(map7); break;
    case 8: ui->label->setPixmap(map8); break;
    }
}

void biaoMainWindow::mousePressEvent(QMouseEvent *)
{
    close();
}

biaoMainWindow::~biaoMainWindow()
{
    delete ui;
}
